package cn.springsoter.core.sms.model.dto;

import cn.springsoter.core.sms.enums.CompanyEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 短信消息
 * @author dws
 * @date 2022-09-07 14:30:00
 */
@Data
@NoArgsConstructor
@Accessors(chain=true)
@EqualsAndHashCode(callSuper = true)
public class SMSMessageDTO extends BaseSMSMessageDTO {

    /**
     * 回调地址前缀
     * <p>可选，为{@code null}时表示无回调。
     * 不要包含最后的路径分割符 {@code /}
     */
    private String callbackUrlPre;

    public SMSMessageDTO(List<String> phones, CompanyEnum company, String sign, String content) {
        super(phones, company, sign, content);
    }
    public SMSMessageDTO(String phone, CompanyEnum company, String sign, String content) {
        super(phone, company, sign, content);
    }
}
